import service from "../utils/request";

/**
 * @description: 新增三级防御圈
 * @param {*} data
 * @return {*}
 */
export function createDefense (data) {
  return service({
    url: "/vehicle/managementObj/add",
    method: "POST",
    data,
  });
}

  /**
 * @description: 修改三级防御圈
 * @param {*} data
 * @return {*}
 */
export function editDefense (data) {
    return service({
      url: "/vehicle/managementObj/edit",
      method: "POST",
      data,
    });
  }

  /**
 * @description: 删除三级防御圈
 * @param {*} data
 * @return {*}
 */
export function delDefense (data) {
    return service({
      url: "/vehicle/managementObj/del",
      method: "POST",
      data,
    });
  }
  /**
 * @description: 查询三级防御圈
 */
export function getDefense () {
    return service({
      url: "/vehicle/managementObj/selectCoordinateById",
      method: "GET",
    });
  }